package com.zhuangxiaoyan.spring.srcode.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;

/**
 * @Classname BService
 * @Description TODO
 * @Date 2022/5/8 15:06
 * @Created by xjl
 */
@Service
// @Scope("prototype") // 多利模式
public class BService {
    @Autowired
    public AService aService;

    public AService getaService() {
        return aService;
    }

    public void setaService(AService aService){
        this.aService=aService;
    }
}
